package cn.edu.djtu.fw.model;

import java.util.Date;

public class News {
	private int nid;

	private String title;

	private Date pubdate;

	private Date pubdateStart;

	private Date pubdateEnd;

	private String content;

	private int hitcount;

	public int getNid() {
		return nid;
	}

	public void setNid(int nid) {
		this.nid = nid;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title == null ? null : title.trim();
	}

	public Date getPubdate() {
		return pubdate;
	}

	public void setPubdate(Date pubdate) {
		this.pubdate = pubdate;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content == null ? null : content.trim();
	}

	public int getHitcount() {
		return hitcount;
	}

	public void setHitcount(int hitcount) {
		this.hitcount = hitcount;
	}

	public Date getPubdateStart() {
		return pubdateStart;
	}

	public void setPubdateStart(Date pubdateStart) {
		this.pubdateStart = pubdateStart;
	}

	public Date getPubdateEnd() {
		return pubdateEnd;
	}

	public void setPubdateEnd(Date pubdateEnd) {
		this.pubdateEnd = pubdateEnd;
	}

}